home *** CD-ROM | disk | FTP | other *** search
- 57
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- SetDisplayEx
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSetDisplay sets the screen size and depth.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baSetDisplayEx( Width, Height, Depth, Refresh, Mode, Force )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer, Integer, Integer, Integer. String, Integer.
- --- RECORDSEPARATOR ---
- Width is the new width of the screen in pixels.
- --- RECORDSEPARATOR ---
- Height is the new height of the screen in pixels.
- --- RECORDSEPARATOR ---
- Depth is the new depth of the screen in bits.
- --- RECORDSEPARATOR ---
- Refresh is the new refresh frequency.
- --- RECORDSEPARATOR ---
- Mode is the way in which the new display is set. Can be:
- --- RECORDSEPARATOR ---
- "temp"
- --- RECORDSEPARATOR ---
- temporarily change the display settings.
- --- RECORDSEPARATOR ---
- "perm"
- --- RECORDSEPARATOR ---
- permanently change the display settings.
- --- RECORDSEPARATOR ---
- "test"
- --- RECORDSEPARATOR ---
- tests whether the display can be set without restarting.
- --- RECORDSEPARATOR ---
- If Force is true, forces the display to change.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns 0 if the display was changed or can be changed without restarting.
- --- RECORDSEPARATOR ---
- Returns 1 if Windows will need to be restarted for the change to take effect.
- --- RECORDSEPARATOR ---
- Returns less than 0 if another error occurred, eg invalid screen size.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baSetDisplayEx( 640 , 480 , 8 , 60 , "temp" , false )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baSetDisplayEx( 640 , 480 , 8 , 60 , "temp" , false )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- This function will not work under Windows 3.1 - it will always return 0.
- --- RECORDSEPARATOR ---
- Not all display cards and drivers support screen changing without restarting.
- --- RECORDSEPARATOR ---
- The force option is not officially supported by Microsoft. It forces the display to
- --- RECORDSEPARATOR ---
- change without restarting. This may work correctly with some video cards and
- --- RECORDSEPARATOR ---
- drivers, but can cause palette problems on others, and crash the system on some.
- --- RECORDSEPARATOR ---
- You are advised to only use this option on known hardware and after extensive
- --- RECORDSEPARATOR ---
- testing.
- --- RECORDSEPARATOR ---
- If you use the "temp" mode, then the user's preferred screen display will be
- --- RECORDSEPARATOR ---
- returned when the system is restarted. You can not set a "temp" mode unless it can
- --- RECORDSEPARATOR ---
- be changed without restarting Windows.
- --- RECORDSEPARATOR ---
- The "temp" mode should only be used if you do not intend the user to be able to
- --- RECORDSEPARATOR ---
- access the task bar or desktop while your program is running. When using the
- --- RECORDSEPARATOR ---
- "temp" mode, Windows may not position the desktop icons and task bar in usable
- --- RECORDSEPARATOR ---
- positions.
- --- RECORDSEPARATOR ---
- Use can use baScreenInfo( "refresh" ) to get the current refresh frequency. It is
- --- RECORDSEPARATOR ---
- possible to set a frequency that the display card is capable of using but that the
- --- RECORDSEPARATOR ---
- monitor can not handle.
- --- RECORDSEPARATOR ---
- Setting the refresh frequency will only work under Windows NT, 2000 and XP.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSetDisplay
- --- RECORDSEPARATOR ---
- baScreenInfo